
import { createApp } from 'vue'
import App from './App.vue'
import router from './router';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css';

import * as ElementPlusIconsVue from '@element-plus/icons-vue'



console.log(import.meta.env.BASE_URL);

if(import.meta.env.PROD){
  console.log("dddd");//这句话只有在线上（生产环境下才能执行）；
}

import {createPinia} from 'pinia';

import store from "@/store/index.js";


const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

// 安装插件:
app.use(createPinia());

app.use(router);
app.use(Antd);
app.use(ElementPlus);
app.use(store);//app.globalProperties.$store = store;


app.mount('#app')
